package com.ruoyi.limitCoupon.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Transient;

import java.util.Date;
import java.util.List;

/**
 * 限时卡券场次对象 t_limit_coupon_matches_config
 *
 * @author ruoyi
 * @date 2025-04-09
 */
@Data
public class LimitCouponMatchesConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 限时卡券场次ID
     */
    private Long id;

    /**
     * 抢购时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "抢购时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date snappedTime;

    @Transient
    private String snappedTimeVar;

    /**
     * 抢购状态
     */
    @Excel(name = "抢购状态")
    private Integer limitStatus;

    /**
     * 有效期时间（分钟）
     */
    @Excel(name = "有效期时间", readConverterExp = "分=钟")
    private Integer limitCouponExpiredTime;

    @Transient
    private List<LimitCouponConfig> limitCouponConfigs;


    /**
     * 是否删除(0=否，1=是)
     */
    private Integer isDelete;


}
